CC=gcc
OBJCOPY=objcopy
CFLAGS = -I../curl/include
MAIN = xbmc-command
LDFLAGS = -lz
LIBS = ../curl/lib/libcurl.a


all: xbmc-command

xbmc-command: 
	cd src/; $(OBJCOPY) --input binary --output elf64-x86-64 --binary-architecture i386 KeyList keylist.o
	cd src/; $(OBJCOPY) --input binary --output elf64-x86-64 --binary-architecture i386 HelpList helplist.o
	cd src/; $(CC) xbmc-command.c $(LIBS) $(LDFLAGS) $(INCLUDES) helplist.o keylist.o -o ../$(MAIN)

clean:
	rm xbmc-command src/*.o

